package com.bestdreamer.dirty_read;

public class Run {

    public static void main(String[] args) {
        try{
            PublicVar publicVarRef = new PublicVar();
            ThreadA  threadA = new ThreadA(publicVarRef);
            threadA.start();
            Thread.sleep(200);
            publicVarRef.getValue();
        }catch (InterruptedException e){
            e.printStackTrace();
}
    }
}
